package com.itheima.api.args.demo02;

import java.util.Arrays;
import java.util.List;

public class ArgsDemo02 {

    public static void main(String[] args) {

        String[] strings = {"恨生","降灾","难平"};
        List<String> list = Arrays.asList(strings);

//        list.add("三毒");
//        System.out.println(list.remove(2));
        System.out.println(list.set(2,"三毒"));
        System.out.println(list);
        System.out.println("-----------------");

        String[] strings1 = {"避尘","随便","朔月"};
        List<String> list1 = List.of(strings1);
//        list1.add("陈情");
//        System.out.println(list1.remove(2));
//        System.out.println(list1.set(2,"陈情"));
        System.out.println(list1);
    }
}
